import logging
from dalle3 import Dalle

# Define cookie using env or empty string
cookie = "1CfUz8Ls_APg7LlJrhprvttqB30Kb7x6wnJ-NfNBW2CyerBKUtyoDV5UGT2WBcA6PaAWVKdjdtfzpkygrMt1cJD8ZU0eL9c3UBftxO8Us5JvYBnyptIvFUYPhR8fzqqjtftGMEBHGY2NZS_Gf8QAlW0kWE2Nmw2jgG6PEzzgYsEYSMVC5NEWznyCz1gdStIjkEb5fnlcIhhv6RHXdV9jrnS8OVwVJaTqs2yOxX5TgCuw"

# Set up logging
logging.basicConfig(level=logging.INFO)

# Instantiate the Dalle class with your cookie value
dalle = Dalle(cookie)
#3D、皮克斯风格、数字人、写实真人
# Open the website with your query
dalle.create(
    "客一客科技公司，是一家致力于互联网金融和金融科技的领先企业。我们的使命是提升中小企业公司的融资效率，并助力金融服务行业创造美好生活，皮克斯风格"
)

# Get the image URLs
urls = dalle.get_urls()

image_path = r'E:\CN_image'
# Download the images to your specified folder
dalle.download(urls, image_path)


# ● 形容词:模糊
# ● 名词:生物
# ● 动词:戴墨镜
# ● 风格:数字艺术
# ● 颜色:黑色
# ● 人物:女性
# ● 风格:数字艺术

